//doctype html
//html
//  head
//    title= title
//    link(rel='stylesheet', href='/stylesheets/style.css')
//  body
//    block content
doctype html
//
  Author: W3layouts
  Author URL: http://w3layouts.com
  License: Creative Commons Attribution 3.0 Unported
  License URL: http://creativecommons.org/licenses/by/3.0/
head
  //title ROTK hospital
  title= title
  link(href='/stylesheets/css/bootstrap.css', type='text/css', rel='stylesheet', media='all')
  link(href='/stylesheets/css/style.css', type='text/css', rel='stylesheet', media='all')
  // Custom Theme files
  meta(name='viewport', content='width=device-width, initial-scale=1')
  meta(http-equiv='Content-Type', content='text/html; charset=utf-8')
  script(type='application/x-javascript').
      addEventListener("load", function() {
          setTimeout(hideURLbar, 0);
      }, false);
      function hideURLbar(){
          window.scrollTo(0,1);
      }
  // //Custom Theme files
  // js
  script(src='/js/jquery-1.11.1.min.js')
  block scripts
  // //js
  // start-smoth-scrolling
  script(type='text/javascript', src='/js/move-top.js')
  script(type='text/javascript', src='/js/easing.js')
  script(type='text/javascript').
      jQuery(document).ready(function($) {
          $(".scroll").click(function(event){
              event.preventDefault();
              $('html,body').animate({scrollTop:$(this.hash).offset().top},1000);
          });
      });
  // //end-smoth-scrolling
// header
.header
  .container
    .header-logo
      a(href='/')
        img(src='/images/logo.png', alt='logo')
    .header-info
      - if(user)
          p
              a(href="/user/" + user.id + "/detail") 欢迎，#{user.name}!{'&nbsp'}!{'&nbsp'}!{'&nbsp'}!{'&nbsp'}
              a(href="/user/logout", id="logoutpage", class="nav-before") 登出

      - else
          p
              a(href="/user/login", id="loginpage", class="nav-before") 登录!{'&nbsp'}!{'&nbsp'}!{'&nbsp'}!{'&nbsp'}
              a(href="/user/register", id="registerpage", class="nav-before") 注册
    .clearfix
// //header
// header-bottom
.header-bottom
  .container
    // top-nav
    .top-nav.cl-effect-5
      span.menu-icon
        img(src='/images/menu-icon.png', alt='')
      ul.nav1
        li
          a(href='/')
            span(data-hover='首页') 首页
        li
          a(href='/hospital')
            span(data-hover='找医院') 找医院
        li
          a(href='/doctor')
            span(data-hover='找医生') 找医生
        -if(user)
            li
              a(href='/appointment/my/')
                span(data-hover='我的预约') 我的预约
        li
          a(href='/help')
           span(data-hover='帮助') 帮助
      // script-for-menu
      script.
          $( "span.menu-icon" ).click(function() {
              $( "ul.nav1" ).slideToggle( 300, function() {
                  // Animation complete.
              });
          });
      // /script-for-menu
    // //top-nav
    form.navbar-form.navbar-right
      .form-group
        input.form-control(type='text', placeholder='Search')
        button.btn.btn-default(type='submit')
    .clearfix
body
  block content

  // //footer
  .footer-bottom
      .container
          p
              | Copyright © 2016 Doctor Plus. All rights reserved | Design by !{'&nbsp'}
              a(href='https://github.com/prohf/rotkRegistration') R.o.t.k
          p 更多信息：13012345678
  // smooth-scrolling-of-move-up
  script(type='text/javascript').
      $(document).ready(function () {
          /*
           var defaults = {
           containerID: 'toTop', // fading element id
           containerHoverID: 'toTopHover', // fading element hover id
           scrollSpeed: 1200,
           easingType: 'linear'
           };
           */
          $().UItoTop({easingType: 'easeOutQuart'});
      });
  a#toTop(href='#', style='display: block;')
      span#toTopHover(style='opacity: 1;')
  // //smooth-scrolling-of-move-up
  //
    Bootstrap core JavaScript
    ==================================================
  // Placed at the end of the document so the pages load faster
  script(src='/js/bootstrap.js')
